from machine import Timer,PWM
import time
def steering_engine1(duty):
    if duty>12:
        duty=12
    if duty<3 :
        duty=3
    tim = Timer(Timer.TIMER0, Timer.CHANNEL0, mode=Timer.MODE_PWM)
    ch = PWM(tim, freq=50, duty=duty, pin=1)#max
def steering_engine2(duty):
    if duty>12:
        duty=12
    if duty<3 :
        duty=3
    tim = Timer(Timer.TIMER0, Timer.CHANNEL1, mode=Timer.MODE_PWM)
    ch = PWM(tim, freq=50, duty=duty, pin=2)#max
if __name__ == "__main__":
    steering_engine1(12)
    steering_engine2(2.5)#2.5 7.5 12.5
    while True:
        pass
